//1.引入Vue
import Vue from "vue";
//2.引入Vuex
import Vuex from 'vuex'

//引入home模块
import home from "./modules/home"
//引入search模块
import search from "./modules/search"
//引入detail模块
import detail from "./modules/detail"
//引入user模块
import user from "./modules/user"

//3.使用插件
Vue.use(Vuex)

//4.创建store对象并暴露
export default new Vuex.Store({
    modules:{
        home,
        search,
        detail,
        user
    }
})

